import request from '../utils/request.ts';
// 登录
export const list = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/login", // url
        data: data
    });
}
// 首页
export const home = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/index", // url
        data: data
    });
}

// 购物车添加
export const shoppingAdd = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/shopping/add", // url
        data: data
    });
}
// 购物车编辑
export const shoppingEdit = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/shopping/edit", // url
        data: data
    });
}
// 购物车列表
export const shoppingList = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/shopping", // url
        data: data
    });
}
// 我的订单
export const orderList = (data: object) => {
    return request({
        method: 'post',
        url: "/mobile/order", // url
        data: data
    });
}